package com.wva.common.constant;

/**
 * 正则表达式常量类
 * @Author: hong
 * @Date: 2025/1/15 11:17:50
 */
public class PatternConst {
    public static final String PHONE = "1(3|4|5|7|8)\\d{9}";
    public static final String UUID = "[a-f\\d]{4}(?:[a-f\\d]{4}-){4}[a-f\\d]{12}/i";
    public static final String EMAIL = "(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))/";
    public static final String MD5 = "([a-f\\d]{32}|[A-F\\d]{32})";
    public static final String URL = "(((ht|f)tps?):\\/\\/)?[\\w-]+(\\.[\\w-]+)+([\\w.,@?^=%&:/~+#-]*[\\w@?^=%&/~+#-])";
}
